import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

import App from '../App.vue'

// 专家课 - 首页；
const index = () => import('@/pages/index/index')
// 专家课 - 登录页；
const reLogin = () => import('@/pages/reLogin/index')
const routes = [
  {
    path: '/',
    component: App,
    children:[
      {
        path: '/',  // 默认进入路由
        redirect: 'index'   //重定向'
      },
      // 首页
      {
        path: '/index',
        name: 'index',
        component: index,
      },
      //重新登录
      {
        path: '/reLogin',
        name: 'reLogin',
        component: reLogin
      }
    ]
  }
]
export default new Router({
  mode: 'history',
  routes
})
